﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin_Office.Master" AutoEventWireup="true" CodeBehind="Admin_Office.aspx.cs" Inherits="TAMS.Admin.Admin_Office1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
        <div>
            <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
                AutoGenerateColumns="False" CellPadding="4" DataKeyNames="Office Code" 
                DataSourceID="TAMS" ForeColor="#333333" 
                GridLines="None" Width="100%" BorderColor="#B5C7DE" BorderStyle="Solid" 
                BorderWidth="1px" HorizontalAlign="Center">
                <AlternatingRowStyle BackColor="White" />
                                <Columns>
                    <asp:BoundField DataField="Office Code" HeaderText="Office Code" SortExpression="Office Code" 
                                        ReadOnly="True" />
                    <asp:BoundField DataField="Building Name" HeaderText="Building Name" 
                        SortExpression="Building Name" />
                    <asp:BoundField DataField="Phone Number" HeaderText="Phone Number" 
                        SortExpression="Phone Number" />
                    <asp:CommandField ButtonType="Button" ShowSelectButton="True">
                    <ControlStyle CssClass="button" Font-Overline="False" Font-Strikeout="False" 
                        Font-Underline="False" />
                    </asp:CommandField>
                </Columns>
                <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#97C1F4" Font-Bold="True" ForeColor="#333333" />
                <SortedAscendingCellStyle BackColor="#F5F7FB" />
                <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                <SortedDescendingCellStyle BackColor="#E9EBEF" />
                <SortedDescendingHeaderStyle BackColor="#4870BE" />
            </asp:GridView>
        </div>
        <asp:SqlDataSource ID="TAMS" runat="server" 
            ConnectionString="<%$ ConnectionStrings:TAMSConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:TAMSConnectionString.ProviderName %>" SelectCommand="SELECT O.offcode as 'Office Code', O.o_building as 'Building Name', O.o_telno as 'Phone Number' 
FROM Office O"></asp:SqlDataSource>
</asp:Content>